package com.dhcc.bpm.modules.log.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.log.entity.BasePrdtBusiness;
import com.dhcc.bpm.modules.log.mapper.BasePrdtBusinessMapper;
import com.dhcc.bpm.modules.log.service.IBasePrdtBusinessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.modules.log.vo.BasePrdtBusinessVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 基础产品业务服务地址表 服务实现类
 * </p>
 *
 * @author xiafayu
 * @since 2021-06-23
 */
@Service
public class BasePrdtBusinessServiceImpl extends ServiceImpl<BasePrdtBusinessMapper, BasePrdtBusiness> implements IBasePrdtBusinessService {

    @Override
    public IPage<BasePrdtBusinessVO> selectBasePrdtBusinessPage(IPage<BasePrdtBusinessVO> page, BasePrdtBusinessVO basePrdtBusiness) {
        return page.setRecords(baseMapper.selectBasePrdtBusinessPage(page, basePrdtBusiness));
    }

    @Override
    public BasePrdtBusinessVO getOneByProductCode(String productCode) {
        return baseMapper.getOneByProductCode(productCode);
    }
}
